<form class="form-inline definewidth m20" action="<?php echo $this->createUrl('/verse/index')?>" method="POST">
    选择章名称：
    <?php echo CHtml::dropDownList('key', $key, $chapterlist,array('empty'=>'请选择,您要查看的章名称'))?>&nbsp;&nbsp; 
    <button type="submit" class="btn btn-primary">查询</button>&nbsp;&nbsp; <a class="btn btn-success" id="addnew" href="<?php echo $this->createUrl('create');?>">新增菜单</a>
</form>
<h3></h3>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>序号</th>
       
        <th>节名称</th>
        <th>添加人</th>
        <th>状态</th>
        <th>管理操作</th>
    </tr>
    </thead>
    <?php foreach ($model as $m):?>
        <tr>
            <td><?php echo $m['chapter_id'].".".$m['sequence']?></td>
            <td><?php echo $m->name?></td>
            <td>jhy</td>
            <td><?php echo ($m->state == 1)?'使用':'禁用'?></td>
            <td><a href="<?php echo $this->createUrl('update',array('id'=>$m->id));?>">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="edit.html">删除</a></td>
        </tr>
    <?php endforeach;?>
</table>